#include "serpent.h"

int main(int argc, char** argv, char** envp) {
	int opt;
		
	while( ( opt = getopt(argc,argv,"hv") ) != -1 ) {
		switch(opt) {
			case 'h':
				usage();
				break;
			case 'v':
				version();
				return(0);
				break;
			default:
				usage();
		}
	}
	
	return(0);
}

void usage(void) {
	version();
	printf("serpent: \n");
	exit(-1);
}

void version(void) {
	printf("serpent version: %s by %s under %s, %s\n", VERSION, AUTHOR, LICENSE, BUILD);
}
